package com.graduation.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 评论表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("comment")
public class Comment {

    // 评论ID
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 用户ID
    @TableField("user_id")
    private Long userId;

    // 文档ID
    @TableField("document_id")
    private Long documentId;

    // 案件ID
    @TableField("case_id")
    private Long caseId;

    // 评论内容
    @TableField("content")
    private String content;

    // 父评论ID（支持回复）
    @TableField("parent_id")
    private Long parentId;

    // 评论时间
    @TableField("create_time")
    private LocalDateTime createTime;

}
